package cn.lg.soar.flow.api.enums;

import cn.lg.soar.common.annotations.DictDefine;
import cn.lg.soar.common.data.dict.IDict;
import com.baomidou.mybatisplus.annotation.IEnum;

/**
 * @author luguoxiang
 * 开源项目：https://gitee.com/lgx1992/lg-soar 求star！请给我star！请帮我点个star！
 */
@DictDefine(name = "审批类型")
public enum AuditTypeEnum implements IDict<Integer>, IEnum<Integer> {

    /**
     * 通过
     */
    pass("通过", 0),
    /**
     * 驳回(审批不通过)
     */
    reject("驳回", 1),
    /**
     * 撤销
     */
    revoke("撤销", 20),
    ;

    AuditTypeEnum(String label, int value){
        this.label = label;
        this.value = value;
    }

    private final String label;
    private final int value;
    @Override
    public Integer getValue() {
        return this.value;
    }
    @Override
    public String getLabel() {
        return this.label;
    }

}
